<!DOCTYPE html>
<html>
<head>
    <title>BaseTest</title>
    <script type="text/javascript" src="../base/js/Class.js"></script>
    <script type="text/javascript">
        var Human = Class.extend({
            init: function () {
                this.nature = "Human";
            },
            say: function () {
                console.log("I am a human");
            }
        })

        var human = Human.create();
        console.log(human);
        human.say();

        var Man = Human.extend({
            init: function () {
                this.callSuper();
                this.sex = "man";
            },
            say: function () {
                this.callSuper();
                console.log("I am a man");
            }
        });

        var man = Man.create();
        console.log(man);
        man.say();

        var Person = Man.extend({
            init: function () {
                this.callSuper();
                this.name = "lee";
            },
            say: function () {
                this.callSuper();
                console.log("I am Lee");
            }
        })

        var person = Person.create();
        console.log(person);
        person.say();
    </script>
</head>
<body>

</body>
</html>